<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class User extends Model
{
    protected $hidden = ['password'];
    //
    protected $type = [
        'status'    =>  'boolean'
    ];


    public function role(){
        return $this->belongsTo(Role::class,'role_id','id');
    }
}
